﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DownloadTicketViewControl.ascx.cs" Inherits="controls_DownloadTicketViewControl" %>

<%@ Register Src="~/_controltemplates/toolbar.ascx" TagName="ToolBar" TagPrefix="SharePoint" %>

<%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<div>

    <asp:Label runat="server" ID="txtUploadComments"></asp:Label>

</div>


<div style="margin-top:20px">


<SharePoint:SPGridView runat="server" AutoGenerateColumns="false" ID="gvFiles">
    <Columns>
        <asp:TemplateField HeaderText="Type" ItemStyle-Width="30px">
            <ItemTemplate>
                <img src="<%# ( (FileItem) Container.DataItem).FileUrl %>"
            </ItemTemplate>
        </asp:TemplateField>        
        <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
            <ItemTemplate>
                <a target="_blank" href="<%# ( (FileItem) Container.DataItem).DownloadUrl %>">
                                <%# ( (FileItem) Container.DataItem).FileName %>
                </a>

            </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="File Size">
            <ItemTemplate>
                <%# ( (FileItem) Container.DataItem).FileSize %>
            </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Will be deleted on">
            <ItemTemplate>
                 <%# ( (FileItem) Container.DataItem).FileDeletionDate %>
            </ItemTemplate>
        </asp:TemplateField>
        
    </Columns>
</SharePoint:SPGridView>


</div>